package com.ch.dsms_backend.repository;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.ch.dsms_backend.entity.Goods;
import com.ch.dsms_backend.entity.GoodsType;

@Mapper
public interface TypeRepository {
    int selectAll();
    List<GoodsType> selectAllTypeByPage(@Param("startIndex") int startIndex,@Param("perPageSize") int perPageSize);

    List<GoodsType> showAllTypes();

    int deleteType(int id);
    List<Goods> selectGoods(int goodstype_id);
    int addType(String typename);
}
